<?php
include_once('./base/xcx_sqlclass.php');
include_once('./base/xcx_commonclass.php');
$fun=new commonfun();
$mysql=new MMsql();
$user_id=$_POST['userid'];
$wk_id=$_POST['wkid'];
$isable=0;
$sql="delete from wk_classinfo where wk_id='".$wk_id."'";
$sql2="delete from wk_students where wk_id='".$wk_id."'";
$result=$mysql->doSql($sql);
try{
	$mysql->startTrans();
	$mysql->doSql($sql);
	$mysql->doSql($sql2);
	$result=$mysql->commit();
	echo $result;
	
}catch(PDOException $e){
	$mysql->rollback();
	echo 0;
}


